package me.tuyou.prototype;

public class X {

    public Y y = new Y();

    public static void main(String[] args) {

        X x = new X();

//        Exception in thread "main" java.lang.StackOverflowError
//        at me.tuyou.prototype.Y.<init>(Y.java:5)
//        at me.tuyou.prototype.X.<init>(X.java:5)
//        at me.tuyou.prototype.Y.<init>(Y.java:5)
//        at me.tuyou.prototype.X.<init>(X.java:5)
//        at me.tuyou.prototype.Y.<init>(Y.java:5)
//        at me.tuyou.prototype.X.<init>(X.java:5)
    }
}
